GdkWaylandDevice: Don't recreate the default cursor every frame
authorTimm Bäder <mail@baedert.org>
Mon, 22 Apr 2019 09:31:12 +0000 (11:31 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 23 Apr 2019 15:09:14 +0000 (17:09 +0200)
commit1f5649e1ce1d0ce6f40626f441a4fdbd16b4746b
treeb2b3e9eb223923db2fdb1d3ebdbd4a60c4f10273
parentca19b940ce73723eca9f18357f85c0a674dd2e25
GdkWaylandDevice: Don't recreate the default cursor every frame

Save the information whether the cursor in use is the default one, and
don't create a new cursor object in that case.
We previously created a new cursor object every frame just to compare it
to the current cursor in use and then throw it away.
gdk/wayland/gdkdevice-wayland.c